﻿@using Microsoft.AspNetCore.Http.Features
@using Microsoft.AspNetCore.Localization

@{
    var requestCulture = Context.Features.Get<IRequestCultureFeature>();
}
<a asp-controller="SelectLanguage"
   asp-action="Index"
   asp-route-returnUrl="@Context.Request.Path">@requestCulture.RequestCulture.Culture.DisplayName</a>
<span> | </span>
